import { PageQueryParam, PageResult } from "../base"

/**
* 查询参数类型声明
*/
export interface ${ClassName}QueryParam extends PageQueryParam {
<#if queryList??>
    <#list queryList as item>
    ${item.attrName}?: ${item.tsType}<#sep>,
    </#list>
</#if>

}

/**
* 分页列表项声明
*/
export interface ${ClassName}Item {
<#if fieldEntityPlusList??>
    <#list fieldEntityPlusList as item>
    <#if item.objattr>
    ${item.attrName}?: ${item.tsType};
    </#if>
    </#list>
</#if>
}

/**
* 分页项类型声明
*/
export type ${ClassName}PageResult = PageResult<${ClassName}Item[]>

/**
* 表单类型声明
*/
export interface ${ClassName}FormData {

<#if fieldEntityPlusList??>
    <#list fieldEntityPlusList as item>
    <#if item.objattr>
    ${item.attrName}?: ${item.tsType}<#if item.pk> | undefined</#if><#sep>,
    </#if>
    </#list>
</#if>
}